package list;

public class Main {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(3);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(6);
        myLinkedList.display();
//        myLinkedList.addIndex(2, 10);
//        myLinkedList.remove(2);
        myLinkedList.removeAllKey(2);
        myLinkedList.clear();
        System.out.println("-----------");
        myLinkedList.display();
        myLinkedList.displayLast();
    }
}
